import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块

const getYc = {
  confimOrderCollection(params) {
    return axios.post(
      `${base.bd}/admin/yuncang/order_collection`,
      qs.stringify(params)
    );
  },
  confimOrderCancel(params) {
    return axios.post(
      `${base.bd}/admin/yuncang/order_cancel`,
      qs.stringify(params)
    );
  },
  getOrderList(params) {
    return axios.post(`${base.bd}/admin/yuncang/lists`, qs.stringify(params));
  },
  getStockList(params) {
    return axios.post(`${base.bd}/admin/yuncang/stock`, qs.stringify(params));
  },
  addStcok(params){
    return axios.post(`${base.bd}/admin/yuncang/stock_plus`, qs.stringify(params));
  },
  delStcok(params){
    return axios.post(`${base.bd}/admin/yuncang/stock_minus`, qs.stringify(params));
  },
  getTeamList(params){
    return axios.post(`${base.bd}/admin/yuncang_team/lists`, qs.stringify(params));
  },
  addTeam(params){
    return axios.post(`${base.bd}/admin/yuncang_team/saveadd`, qs.stringify(params));
  },
  saveeditTeam(params){
    return axios.post(`${base.bd}/admin/yuncang_team/saveedit`, qs.stringify(params));
  },
  delTeam(params){
    return axios.post(`${base.bd}/admin/yuncang_team/del`, qs.stringify(params));
  }
};
export default getYc;
